package com.yuexin.project.store.inbound.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.yuexin.framework.aspectj.lang.annotation.Excel;
import com.yuexin.framework.web.domain.BaseEntity;
import com.yuexin.project.store.goods.domain.GoodsList;

import java.util.Date;

/**
 * 入库单表 store_inbound
 * 
 * @author yuexin
 * @date 2018-11-29
 */
public class Inbound extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/** 入库单ID */
	private Integer inboundId;
	@DateTimeFormat(pattern="yyyy-MM-dd")
	@JsonFormat(pattern="yyyy-MM-dd")
	/** 入库日期 */
	private Date inboundDate;
	@Excel(name = "入库日期")
	private String inboundDateExcel;
	/** 物品名称 */
	private Integer goodsId;
	/** 物品名称 */
	@Excel(name = "物品名称")
	private String goodsName;
	/** 数量 */
	@Excel(name = "数量")
	private Integer inboundNumber;
	/** 单价 */
	@Excel(name = "单价")
	private Double inboundPrice;
	/** 金额 */
	@Excel(name = "金额")
	private Double inboundMoney;
	/** 备注 */
	@Excel(name = "备注")
	private String remark;
	
	private GoodsList goodsList;

	public void setInboundId(Integer inboundId) 
	{
		this.inboundId = inboundId;
	}

	public Integer getInboundId() 
	{
		return inboundId;
	}
	public void setInboundDate(Date inboundDate) 
	{
		this.inboundDate = inboundDate;
	}

	public Date getInboundDate() 
	{
		return inboundDate;
	}
	public String getInboundDateExcel() {
		return inboundDateExcel;
	}

	public void setInboundDateExcel(String inboundDateExcel) {
		this.inboundDateExcel = inboundDateExcel;
	}

	public void setGoodsId(Integer goodsId) 
	{
		this.goodsId = goodsId;
	}

	public Integer getGoodsId() 
	{
		return goodsId;
	}
	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public void setInboundNumber(Integer inboundNumber) 
	{
		this.inboundNumber = inboundNumber;
	}

	public Integer getInboundNumber() 
	{
		return inboundNumber;
	}
	public void setInboundPrice(Double inboundPrice) 
	{
		this.inboundPrice = inboundPrice;
	}

	public Double getInboundPrice() 
	{
		return inboundPrice;
	}
	public void setInboundMoney(Double inboundMoney) 
	{
		this.inboundMoney = inboundMoney;
	}

	public Double getInboundMoney() 
	{
		return inboundMoney;
	}
	public void setRemark(String remark) 
	{
		this.remark = remark;
	}

	public String getRemark() 
	{
		return remark;
	}
	
    public GoodsList getGoodsList() {
		return goodsList;
	}

	public void setGoodsList(GoodsList goodsList) {
		this.goodsList = goodsList;
	}

	public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("inboundId", getInboundId())
            .append("inboundDate", getInboundDate())
            .append("goodsId", getGoodsId())
            .append("inboundNumber", getInboundNumber())
            .append("inboundPrice", getInboundPrice())
            .append("inboundMoney", getInboundMoney())
            .append("remark", getRemark())
            .toString();
    }
}
